package com.navinfo.platform.score.enums;


/**
 * 载重状态
 * @author CAI
 * @create 2019/03/12
 **/
public enum LoadStatusEnum {
    /* 空载 */
    EMPTY_LOAD("0"),
    /* 半载 默认载重 */
    HALF_LOAD("1"),
    /* 满载 */
    FULL_LOAD("2"),
    /* 超载 */
    OVER_LOAD("3"),
    /* 默认 不采用载重*/
    // DEFAULT_LOAD("9")
    ;
    private String type;

    LoadStatusEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public static LoadStatusEnum getEnum(String type){
        for(LoadStatusEnum loadStatusEnum : LoadStatusEnum.values()){
            if(loadStatusEnum.getType().equals(type)){
                return loadStatusEnum;
            }
        }
        return null;
    }
}
